package org.dxy.infrastructure.persistent.service;

import com.github.yulichang.base.MPJBaseService;
import org.dxy.infrastructure.entity.DomainEventEntity;

import java.util.List;

/**
 * 领域事件服务接口
 * @author dxy
 */
public interface DomainEventService extends MPJBaseService<DomainEventEntity> {


    Integer findMaxIndexByAggregateId(Long aggregateId);

    List<DomainEventEntity> getEventListByAggregateId(Long workOrderId);

    boolean markEventsPublished(List<Long> eventIds);
}